# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=flickcurl
pkgver=1.26
pkgrel=3
pkgdesc="C library for the Flickr API"
url="https://librdf.org/flickcurl/"
arch="all"
license="GPL-2.0"
makedepends="curl-dev libxml2-dev raptor2-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://download.dajobe.org/flickcurl/flickcurl-$pkgver.tar.gz"

prepare() {
	update_config_guess
	update_config_sub
	default_prepare
}

build() {
	./configure --prefix /usr
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5ffdef58e67cbf99da2e8eefad57e845627703d5b22c85d5635557cd2df53e47e74d8e3387523495708c5cc8952c290da5c4d5f1e86bd482312fc7e46e9af6cd  flickcurl-1.26.tar.gz
"
